package com.darker.secking.service;

import com.darker.secking.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.darker.secking.entity.User;
import com.darker.secking.vo.DetailVo;
import com.darker.secking.vo.GoodsVo;
import com.darker.secking.vo.OrderDetailVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author darker
 * @since 2022-10-06
 */
public interface IOrderService extends IService<Order> {


//    创建订单
    Order secking(User user, GoodsVo goods);

    OrderDetailVo findDetail(Long orderId);

    //获取秒杀地址
    String createPath(User user, Long goodsId);
    //校验秒杀路径
    Boolean checkPath(User user, Long goodsId, String path);

    //校验验证码
    boolean checkCaptcha(User user, Long goodsId, String captcha);
}
